//
//  JkNumberItem.m
//  JackToolsBox
//
//  Created by Jack on 2019/12/25.
//  Copyright © 2019 Jack Xue. All rights reserved.
//

#import "JkNumberItem.h"
@interface JkNumberItem(){
    UILabel *_infoLabel;
}
@end

@implementation JkNumberItem
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _infoLabel = [[UILabel alloc]initWithFrame:CGRectZero];
        [self addSubview:_infoLabel];
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    _infoLabel.frame = self.bounds;
}

-(void)sendValueToItem:(NSInteger)index{
    _infoLabel.text = [NSString stringWithFormat:@"%ld",(long)index];
}
@end
